<?php
use Illuminate\Database\Eloquent\SoftDeletingTrait;

class Category extends \Eloquent {
	
	use SoftDeletingTrait;

	// Add your validation rules here
	public static $rules = [
		'name' => 'required|unique:categories'
	];

	protected $dates = ['deleted_at'];

	// Don't forget to fill this array
	protected $fillable = ['name'];

    public function jobs()
    {
        return $this->hasMany('Job');
    }

}